package com.company;

public class while_for_dowhile {
    public static void main(String args[]) {
        int x = 10;
        // while循环
        while( x < 20 ) {
            System.out.print("value of x : " + x );
            x++;
            System.out.print("\n");
        }

        // do while循环
        int y = 10;
        do{
            System.out.print("value of y : " + y );
            y++;
            System.out.print("\n");
        }while( y < 20 );


        // for循环
        for(int xx = 10; xx < 20; xx = xx+1) {
            System.out.print("value of xx : " + xx );
            System.out.print("\n");
        }
    }
}
